import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  /* 核心概念state：存储数据 */
  state: {
    //用户数据
    userInfo:{}
  },
  mutations: {
    setUserInfo(state,newData){
      state.userInfo = newData;
    }
  },
  actions: {
  },
  modules: {
  }
})
